package com.yobol.jgrowth.service;

import com.yobol.jgrowth.domain.User;
import com.yobol.jgrowth.exception.PasswordNotTrueException;
import com.yobol.jgrowth.exception.UsernameDuplicationException;
import com.yobol.jgrowth.exception.UsernameNotFoundException;

import java.util.List;

/**
 * User Service Interface
 *
 * @author
 * @create 2018-03-25 19:26
 **/

public interface UserService {

    int addUser(User user) throws UsernameDuplicationException;

    User validateUser(User user) throws UsernameNotFoundException,PasswordNotTrueException;

    void loginOut(User user);

    List<User> selectAll(int pageNum, int pageSize);

    List<User> selectAll();
}
